package cn.fulong.smebj.mapper;

import cn.fulong.smebj.entity.Answer;
import cn.fulong.smebj.entity.AnswerImg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AnswerImgMapper extends BaseMapper<AnswerImg> {

    @Select("select * from Answer_Img where answer_id=#{id}")
    List<AnswerImg> query(@Param("id") Long id);


    @Select("select * from answer_img where answer_id=#{id}")
    List<AnswerImg> selectByQuestion(@Param("id") Long id);
}